package com.example.stack.exception;

public class BaseException extends RuntimeException{
    private Integer status;
    private String code;

    public BaseException(String message, Integer status, String code) {
        super(message);
        this.status = status;
        this.code = code;
    }

    public BaseException(String message,Throwable cause, Integer status, String code) {
        super(message, cause);
        this.status = status;
        this.code = code;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
